//调用接口配置文件
import { request } from 'config/request'
import config from 'config/config'
import Cookie from 'js-cookie'

//导出
export async function exportList (params) {
  params.accountId=Cookie.get(config.cookie.userId)
  return request({
    url: `3rd/commission/recommendCommissionExcel`,
    method: 'POST',
    headers: {
      'Content-type': 'application/json'
    },
    timeout: 600000,
    data: params
  })
}

export async function getAreaList(params) {
  params.accountId=Cookie.get(config.cookie.userId)
  return request({
    url: '3rd/commission/getRegion',
    method: 'GET',
    data: params,
    // headers: {
    //   "Content-type": "application/x-www-form-urlencoded"
    // },
  });
};
export async function queryAllAddress(params) {
    return request({
        url: 'admin/address/queryAllAddress',
        method: 'GET',
        data: params,
    });
};
//楼盘列表
export async function queryestateList(params) {
    return request({
        url: 'admin/estate/list',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};
//获取原因
export async function getReason(params) {
    return request({
        url: '3rd/commission/reasonSearch',
        data: params,
        method: "POST",
        headers: {
            "Content-type": "application/json"
        },
    });
};